<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			//this.$store.dispatch('connectSocket')
			//nvue图标样式引入
			const domModule = weex.requireModule('dom')
			domModule.addRule('fontFace', {
				'fontFamily': "iconfont",
				'src': "url('http://at.alicdn.com/t/font_2873303_y6zk516gr2.ttf')"
			});
			
			//监听底部导航中间凸起按钮
			uni.onTabBarMidButtonTap((e)=>{
				console.log("点击了中间按钮")
				this.authJump({
					url: "/pages/live/create",
					animationType: "slide-in-bottom",
					animationDuration: 150
				})
			})
			
			this.$store.dispatch('initUser')
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	@import url("/common/free.css");
	@import url("/common/common.css");
	/* #ifndef APP-PLUS-NVUE */
	@import url("/common/icon.css");
	/* #endif */
</style>
